package com.runningboy.nacosconsumerfeignsentinel.controller;

import com.runningboy.nacosconsumerfeignsentinel.service.SentinelFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestSentinelController {
    @Autowired
    private SentinelFeignService sentinelFeignService;
    @GetMapping("/test/sentinel/{message}")
    public String test(@PathVariable String message){
        return sentinelFeignService.test(message);
    }
}
